package com.travel.server.manager.impl.youzan;

/**
 * @Author: LiZhenhui
 * @Date: 2018/12/17 17:00
 * @Desc:
 */
public enum YouzanPayTypeEnum {

    TYPE2(1L,"微信自有支付"),
    TYPE3(2L,"支付宝wap"),
    TYPE4(3L,"支付宝wap"),
    TYPE5(5L,"财付通"),
    TYPE6(7L,"代付"),
    TYPE7(8L,"联动优势"),
    TYPE8(9L,"货到付款"),
    TYPE9(10L,"大账号代销"),
    TYPE10(11L,"受理模式"),
    TYPE11(12L,"百付宝"),
    TYPE12(13L,"sdk支付"),
    TYPE13(14L,"合并付货款"),
    TYPE14(15L,"赠品"),
    TYPE15(16L,"优惠兑换"),
    TYPE16(17L,"自动付货款"),
    TYPE17(18L,"爱学贷"),
    TYPE18(19L,"微信wap"),
    TYPE19(20L,"微信红包支付"),
    TYPE20(21L,"返利"),
    TYPE21(22L,"ump红包"),
    TYPE22(24L,"易宝支付"),
    TYPE23(25L,"储值卡"),
    TYPE24(27L,"qq支付"),
    TYPE25(28L,"有赞E卡支付"),
    TYPE26(29L,"微信条码"),
    TYPE27(30L,"支付宝条码"),
    TYPE28(33L,"礼品卡支付"),
    TYPE29(35L,"会员余额"),
    TYPE30(72L,"微信扫码二维码支付"),
    TYPE31(100L,"代收账户"),
    TYPE32(300L,"储值账户"),
    TYPE33(400L,"保证金账户"),
    TYPE34(101L,"收款码"),
    TYPE35(102L,"微信"),
    TYPE36(103L,"支付宝"),
    TYPE37(104L,"刷卡"),
    TYPE38(105L,"二维码台卡"),
    TYPE39(106L,"储值卡"),
    TYPE40(107L,"有赞E卡"),
    TYPE41(110L,"标记收款-自有微信支付"),
    TYPE42(111L,"标记收款-自有支付宝"),
    TYPE43(112L,"标记收款-自有POS刷卡"),
    TYPE44(113L,"通联刷卡支付"),
    TYPE45(200L,"记账账户"),
    TYPE46(201L,"现金");

    private Long type;

    private String desc;

    YouzanPayTypeEnum(Long type, String desc){
        this.type = type;
        this.desc = desc;
    }

    public static String getDescByType(Long type){
        for(YouzanPayTypeEnum item : YouzanPayTypeEnum.values()){
            if(item.getType().equals(type)){
                return item.getDesc();
            }
        }
        return null;
    }

    public Long getType() {
        return type;
    }

    public void setType(Long type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}
